﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccess
{
	public static class DataRepository
	{
		private static readonly RepositoryDataContext _context;

		public static RepositoryDataContext Context { get { return _context; } }

		public static System.Data.Linq.Table<T> Get<T>()
			where T : class
		{
			return _context.GetTable<T>();
		}

		static DataRepository()
		{
			_context = new RepositoryDataContext();
		}
	}
}
